﻿using System.Collections.Generic;

namespace Coldairarrow.Util
{
    /// <summary>
    /// 通用条件查询DTO
    /// </summary>
    public class ConditionDTO
    {
        public string Condition { get; set; }
        public string Keyword { get; set; }
        public List<QueryKey> Query { get; set; }
    }

 
    /// <summary>
    /// 高级查询通用条件查询DTO
    /// </summary>
    public class SuperConditionDTO
    {
        public string Condition { get; set; }
        public string Keyword { get; set; }
        public List<QueryKey> Query { get; set; }
    }
    public class QueryKey
    {
        public string key { get; set; }

        public string Value { get; set; }
    }
    public class ConditionTimeDTO: ConditionDTO
    {
        /// <summary>
        /// 起始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 终止时间
        /// </summary>
        public string EndTime { get; set; }
    }
    public class ConditionFactoryDTO : ConditionDTO
    {
        /// <summary>
        /// 部门id
        /// </summary>
        public string DepartmentId { get; set; }
        /// <summary>
        ///客户id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 加工厂id
        /// </summary>
        public string FactoryId { get; set; }

        /// <summary>
        /// 起始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 终止时间
        /// </summary>
        public string EndTime { get; set; }
    }
    public class OutConditionTimeDTO : ConditionDTO
    {
        /// <summary>
        // 出库类型加工套材油漆出库 = 0,
        //质检前维修套材油漆出库 = 1,
      	//质检后维修套材油漆出库 = 2,
        //直接油漆出库 = 3
        /// </summary>
        public  int OutBoundTypeId { get; set; }
        /// <summary>
        /// 起始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 终止时间
        /// </summary>
        public string EndTime { get; set; }
    }

}
